import 'package:fish_redux/fish_redux.dart';

//TODO replace with your own action
enum LoginAction {
  action,
  checkAgree,
  changeInputType,
  onInputMobile,
  onInputPwd,
  onInputCode,
  showPwd,
  getCodeCLick,
  timerChange,
  login,
}

class LoginActionCreator {
  static Action onAction() {
    return const Action(LoginAction.action);
  }
  static Action onGetCodeClick() {
    return const Action(LoginAction.getCodeCLick);
  }
  static Action onShowPwd() {
    return const Action(LoginAction.showPwd);
  }

  static Action onInputMobile() {
    return Action(LoginAction.onInputMobile);
  }

  static Action onInputPwd() {
    return Action(LoginAction.onInputPwd);
  }

  static Action onInputCode() {
    return Action(LoginAction.onInputCode);
  }

  static Action onCheckAgree() {
    return Action(LoginAction.checkAgree);
  }

  static Action onChangeInputType() {
    return Action(LoginAction.changeInputType);
  }
  static Action onLogin() {
    return Action(LoginAction.login);
  }
}
